﻿@{
    ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<hr />

<address>
    One Microsoft Way<br />
    Redmond, WA 98052-6399<br />
    <abbr title="Phone">P:</abbr>
    425.555.0100
</address>

<address>
    <strong>Support:</strong>   <a href="mailto:Support@example.com">Support@example.com</a><br />
    <strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
</address>

@section scripts{
    <script type="text/javascript">
        $.ajax({
            type: "post",
            url: "http://192.168.2.222:8005/Home/GetControlByCheckin",
            data: { "OpenIds": ["0b26cfad-8c5e-420c-a847-8690d7474eaf_00193849"] },
            dataType: 'json', //【这里要小心啊，不要用jsonp，一定是json】
            crossDomain: true, //【这个很重要，一定要加】
            xhrFields: {
                withCredentials:true
            },
            success: function (result) {
                console.log(result);
            },
            error: function (result) {
                console.log(result);
            }
        });
    </script>
}